package com.situ.mall.web.controller;


import com.situ.mall.common.entity.Member;
import com.situ.mall.common.service.IMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-01-29
 */
@RestController
@RequestMapping("/member")
public class MemberController {

    @Autowired
    private IMemberService memberService;

    //查询用户个人信息
    @GetMapping("/personal")
    public Member personal(Integer id) {
        return memberService.getById(id);
    }

}
